/**
 * List 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/list/style';

export const listThemeConfig: Partial<ComponentToken> = {
  contentWidth: 220,
  headerBg: 'transparent',
  footerBg: 'transparent',
  itemPadding: '12px 0' as any,
  itemPaddingSM: '8px 16px' as any,
  itemPaddingLG: '16px 24px' as any,
  metaMarginBottom: 16,
  avatarMarginRight: 16,
  titleMarginBottom: 12,
  descriptionFontSize: 14,
  emptyTextPadding: '16px' as any,
};

export const getListTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...listThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as ListComponentToken } from 'antd/es/list/style';

